agents.anac.y2011.Nice_Tit_for_Tat
Class BidHistory

java.lang.Object
  extended by agents.anac.y2011.Nice_Tit_for_Tat.BidHistory
All Implemented Interfaces:
java.lang.Iterable<BidDetails>

public class BidHistory
extends java.lang.Object
implements java.lang.Iterable<BidDetails>


Constructor Summary
BidHistory()
           
BidHistory(BidHistory b)
           
BidHistory(UtilitySpace u)
          Pretends all bids in the domain were made on t = 0.
 
Method Summary
 void add(BidDetails b)
           
 BidHistory filterBetween(double minU, double maxU, double minT, double maxT)
           
 BidHistory filterBetweenTime(double minT, double maxT)
           
 double getAverageUtility()
           
 Bid getBestBid()
          Gets the best bid for me.
 BidDetails getBestBidDetails()
          Gets the details of the best bid for me.
 BidHistory getBestBidHistory(int n)
          Gets the history part of the best n (or less) bids for me.
 BidDetails getBidDetailsOfUtility(double u)
          Get the BidDetails of the Bid with utility closest to u.
 BidHistory getCopySortedToUtility()
           
 BidDetails getFirstBidDetails()
           
 java.util.List<BidDetails> getHistory()
           
 Bid getLastBid()
           
 BidDetails getLastBidDetails()
           
 double getMaximumUtility()
           
 double getMinimumUtility()
           
 BidDetails getRandom()
           
 BidDetails getRandom(java.util.Random r)
           
 Bid getSecondLastBid()
           
 java.util.Iterator<BidDetails> iterator()
           
 int size()
           
 void sortToUtility()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BidHistory

public BidHistory()

BidHistory

public BidHistory(BidHistory b)

BidHistory

public BidHistory(UtilitySpace u)
Pretends all bids in the domain were made on t = 0.

Method Detail

filterBetweenTime

public BidHistory filterBetweenTime(double minT,
                                    double maxT)

filterBetween

public BidHistory filterBetween(double minU,
                                double maxU,
                                double minT,
                                double maxT)

add

public void add(BidDetails b)

getLastBidDetails

public BidDetails getLastBidDetails()

getFirstBidDetails

public BidDetails getFirstBidDetails()

getLastBid

public Bid getLastBid()

getSecondLastBid

public Bid getSecondLastBid()

size

public int size()

getHistory

public java.util.List<BidDetails> getHistory()

getBidDetailsOfUtility

public BidDetails getBidDetailsOfUtility(double u)
Get the BidDetails of the Bid with utility closest to u.


getMaximumUtility

public double getMaximumUtility()

getMinimumUtility

public double getMinimumUtility()

getBestBid

public Bid getBestBid()
Gets the best bid for me.


getBestBidDetails

public BidDetails getBestBidDetails()
Gets the details of the best bid for me.


getBestBidHistory

public BidHistory getBestBidHistory(int n)
Gets the history part of the best n (or less) bids for me.


getRandom

public BidDetails getRandom()

getRandom

public BidDetails getRandom(java.util.Random r)

getAverageUtility

public double getAverageUtility()

sortToUtility

public void sortToUtility()

getCopySortedToUtility

public BidHistory getCopySortedToUtility()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

iterator

public java.util.Iterator<BidDetails> iterator()
Specified by:
iterator in interface java.lang.Iterable<BidDetails>